<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
  #mainDiv{
    margin-top: 50px;
   display: flex;
    flex-wrap: nowrap;
  }
  #mainRight{
    margin-left: 200px;
    width: auto;
    height: auto;
    border: 1px solid black;
  }
  #mainLeft{
    width: 600px;
    height: 400px;
      visibility: hidden;
      display: flex;
  }
  .hidDiv {
      left: 0px;
      top: 0px;
      position: absolute;
      visibility: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
  }

  .contentDiv {
      width: 450px;
      height: 250px;
      background-color: white;
      border: 1px solid black;
      padding: 50px;
  }

    </style>
    <script src="bookList.js"></script>
    <script src="Service.js"></script>
</head>
<body>
<header style="text-align: center;font-size: 40px;color: #f04238"><img src="img/head.png" style="width: 1650px;height: 125px"></header>
<div id="mainDiv">
    <div id="mainLeft">
        <div style="width: 300px;height: 400px">
            图书名：<span id="bookNameSpan"></span><br><br><br><br>
            作者：<span id="authorSpan"></span><br><br><br><br>
            出版时间：<span id="pDateSpan"></span><br><br><br><br>
            售价：<span id="priceSpan"></span><br>
        </div>
        <div style="width: 300px;height: 300px">
            <img src="" id="imgSpan" style="width: 300px;height: 300px">
        </div>
    </div>
    <div id="mainRight">
      图书名：<input type="text" id="nameTxt" style="">
      <input type="button" style="background-color: chocolate" value="查找" onclick="findByName()"><br>
        <table >
            <thead>
            <tr>
                <th></th>
                <th>书名</th>
                <th>作者</th>
                <th>价格（元）</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody id="data" style="text-align: center"></tbody>
        </table>
        <br>

    </div>
</div>

<div class="hidDiv" id="addDiv" >
    <div class="contentDiv">
        <table>
            <thead>
            <tr>
                <th>商品名</th>
                <th>单价</th>
                <th>数量</th>
                <th>总价</th>
                <th>移除商品</th>
            </tr>
            </thead>
        </table>
        <input type="button" value="继续购物" onclick="buyMore()">
    </div>
</div>




</body>
</html>